package com.common;

public class ActionResult {

	// 操作id
	private String actionid;
	
	//操作结果
	private int result = 0;
	
	// 错误代码
	private String errorcode;
	
	// 描述
	private String desc;
	
	// 返回的对象
	private Object obj;
	
	// objid
	private String objid;
	
	// 行为
	private String action;
	
	public ActionResult(){
		
	}
	
	public ActionResult(int result,String errorcode,String desc,Object obj){
		this.result = result;
		this.errorcode = errorcode;
		this.desc = desc;
		this.obj = obj;
	}
	
	public ActionResult(String actionid, int result,  String errorcode, String desc, Object obj ){
		this.result = result;
		this.actionid = actionid;
		this.errorcode = errorcode;
		this.desc = desc;
		this.obj = obj;
 	}
	
	public ActionResult(int result, String action) {
		this.result = result;
		this.action = action;
	}
	
	public ActionResult(int result, String id, String action) {
		this.result = result;
		this.objid = id;
		this.action = action;
	}
	
	public String getActionid() {
		return actionid;
	}

	public void setActionid(String actionid) {
		this.actionid = actionid;
	}

	public int getResult(){
		return this.result;
	}
	
	public void setResult(int result) {
		this.result = result;
	}
	
	public String getErrorcode() {
		return errorcode;
	}

	public void setErrorcode(String errorcode) {
		this.errorcode = errorcode;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public String getObjid() {
		return objid;
	}

	public void setObjid(String objid) {
		this.objid = objid;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	
}
